import api from './axios.js'

export const caregiverApi = {
    // 护工列表（分页）
    getCaregivers: params => api.get('/admin/caregiver/page', { params }),
    add: data => api.post('/admin/caregiver/save', data),
    update: data => api.post('/admin/caregiver/save', data),
    delete: id => api.delete(`/admin/caregiver/${id}`)
}